//*11：定义一个整数数组，判断其中是否有重复的数据
public class Task2 {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        int[] arr = new int[5];
        for (int i = 0; i < arr.length; i++) {
            System.out.println("Please input No." + (i + 1));
            arr[i] = in.nextInt();
        }
        int num = 0;
        for (int i = 0; i < arr.length; i++) {
            num = arr[i];
            for (int j = 0; j < arr.length; j++) {
                if (num == arr[j + 1]) {
                    System.out.println("Yes!");
                    return;
                } else {
                    System.out.println("No!");
                    return;
                }
            }
        }
    }
}